import request from '@/utils/request'

// 查询引入试卷列表
export function listExaminationPaper(query) {
  return request({
    url: '/exam/examinationPaper/list',
    method: 'get',
    params: query
  })
}

// 查询引入试卷详细
export function getExaminationPaper(id) {
  return request({
    url: '/exam/examinationPaper/' + id,
    method: 'get'
  })
}

// 新增引入试卷
export function addExaminationPaper(data) {
  return request({
    url: '/exam/examinationPaper',
    method: 'post',
    data: data
  })
}

// 修改引入试卷
export function updateExaminationPaper(data) {
  return request({
    url: '/exam/examinationPaper/update',
    method: 'post',
    data: data
  })
}

// 删除引入试卷
export function delExaminationPaper(id) {
  return request({
    url: '/exam/examinationPaper/delete/' + id,
    method: 'post'
  })
}

// 导出引入试卷
export function exportExaminationPaper(query) {
  return request({
    url: '/exam/examinationPaper/export',
    method: 'get',
    params: query
  })
}
//引入单张试卷
export function selectExaminationPaper(data) {
  return request({
    url: '/exam/examinationPaper',
    method: 'post',
    data: data
  })
}
